
$(function () {
	
	if ( vaStatusCancel == '' || vaStatusCancel =='btn_enable'){
		document.getElementById("div_cancel_button").innerHTML = "<div class='form-detail' style='text-align:center; margin-top:-50px'> " +
		" <button type='button'  class='btn btn-danger' data-toggle='modal' data-target='#myModalMessageConfirm' " +
		" id='btn_cancel_button' name='btn_cancel_button'><i class='glyphicon glyphicon-floppy-remove'></i> ยกเลิก</button></div>";
	} else if ( vaStatusCancel == 'btn_disable'){
		document.getElementById("div_cancel_button").innerHTML = "<div class='form-detail' style='text-align:center; margin-top:-50px'> " +
		" <button type='button' class='btn btn-danger' data-toggle='modal' data-target='#myModalMessageConfirm' " +
		" id='btn_cancel_button' name='btn_cancel_button'><i class='glyphicon glyphicon-floppy-remove'></i> ยกเลิก</button></div>";
	}
});

function checkButtonClick(button) {
	if(button == 'btn_cancel'){
		document.getElementById("btn_cancel").value = "yes";
	}
}